﻿@model TS2015.Models.TbTruongTHPT

@{
    ViewBag.Title = "SearchHighSchool";
    AjaxOptions aj = new AjaxOptions
    {
        InsertionMode = InsertionMode.Replace,
        UpdateTargetId = "resulthighschool",
        LoadingElementId = "loading-icon",
        OnFailure = "AjaxFailure",
        OnBegin = "AjaxBegin",
        OnComplete = "AjaxComplete"
    };
}


@using (Ajax.BeginForm(aj))
{
    @Html.AntiForgeryToken()
    <header class="panel-heading">
        <h3 style="text-align: center; font-weight: bold">Tìm kiếm Trường THPT</h3>
    </header>
    <div class="panel-body">
        <div class="form-horizontal">
            <div class="form-group">
                <div class="col-lg-6 col-md-6 row">
                    <strong class="col-lg-3 col-md-3 row">Mã Trường:</strong>
                    <div class="col-lg-8 col-md-8 row">
                        @Html.TextBoxFor(m => m.MaTruong, new { @class = "form-control", data_val = "false" })
                    </div>
                </div>
                <div class="col-lg-6 col-md-6 row">
                    <strong class="col-lg-3 col-md-3 row">Tên Trường:</strong>
                    <div class="col-lg-8 col-md-8 row">
                        @Html.TextBoxFor(m => m.TenTruong, new { @class = "form-control", data_val = "false" })
                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-lg-6 col-md-6 row">
                    <strong class="col-lg-3 col-md-3 row">Tỉnh:</strong>
                    <div class="col-lg-8 col-md-8 row">
                        @Html.DropDownList("MaTinh", (SelectList)ViewBag.Tinh, String.Empty, new { @class = "form-control", data_val = "false" })
                    </div>
                </div>
                <div class="col-lg-6 col-md-6 row">
                    <strong class="col-lg-3 col-md-3 row">Địa chỉ:</strong>
                    <div class="col-lg-8 col-md-8 row">
                        @Html.TextBoxFor(m => m.DiaChi, new { @class = "form-control", data_val = "false" })
                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-lg-6 col-md-6 row">
                    <strong class="col-lg-3 col-md-3 row">Khu vực:</strong>
                    <div class="col-lg-8 col-md-8 row">
                        @Html.DropDownList("MaKhuVuc", (SelectList)ViewBag.KhuVuc, String.Empty, new { @class = "form-control", data_val = "false" })
                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-md-offset-1 col-md-10">
                    <input type="submit" value="Tìm kiếm" class="btn btn-danger" id="SearchList" />
                </div>
            </div>
        </div>
    </div>
}
@*<div id="grid"></div>*@
<div id="resulthighschool"></div>

